package cn.hcbycloud.auth.mapper;


import cn.hcbycloud.auth.model.Cust;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * 客户基本信息表
 * @author gaoheng
 * @date 2022-01-20 15:44:42
 */
public interface CustMapper extends BaseMapper<Cust> {

    /**
     * 判断客户存在
     * @param mainId 客户主体标识
     * @param tenantId 租户ID
     * @return
     */
    boolean haveCustomer(@Param("mainId") String mainId, @Param("tenantId") String tenantId);

}
